/***************************************************************************
 *   This is a part of the NextCAD Web APP.                                *
 *   Copyright (C) AMCAX, All rights reserved.                             *
 ***************************************************************************/
import { CadEnvironments } from '@app-cad/environments';
import { BaseCommand, cadAppLog } from '@amcax/base';
import { ctx2, environmentManager } from '@app-cad/module';

export const cmdCurved: BaseCommand = {
  id: 'CmdCurved',
  label: 'command.curved',
  icon: 'commands/feature/line',

  invoke: () => {
    cadAppLog('exchange to curved !!!!');
    environmentManager.switchTo(CadEnvironments.Curved);
    ctx2.viewer.fitObjectView();
    cadAppLog('exchange to curved finished !!!!');
  },
};
